package com.example.myworkers.service.imp;/*
 *编写者：段光映
 */

import com.example.myworkers.dao.IEmployee;
import com.example.myworkers.model.Employee;
import com.example.myworkers.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeImpl implements EmployeeService {
  @Autowired
  private IEmployee employeeMapper;
   @Override
  public int insertEmployee(Employee employee){
    int employeevalue=0;
    return employeevalue;
   }
   @Override
   public int deleteEmployee(Employee employee){
     int employeevalue=0;
     return employeevalue;
   }
   @Override
   public List<Employee> selectAllEmployee(Employee employee){
     List<Employee> getE=employeeMapper.selectAllEmployee(employee);
    return getE;
   }
   @Override
   public  Employee selectEmployee(Employee employee){
       Employee employee1=new Employee();
       if(employee.getEmpno()!=0){
           employee1=employeeMapper.selectEmployee(employee);
       }
       return employee1;
   }
   @Override
   public int updateEmployee(Employee employee){
     int employeevalue=0;
     return employeevalue;
   }
}
